Set RGB Values of LED
Function:
magicbox.set_led_rgb(port, index, red, green, blue)Description: set the R, G, B value of a Light
Required parameter:
- port: controller port. data type: int, range: 1~6
- index: position of light. data type: int, range: 1~3
- red: brightness value of red. data type: int, range: 0~255
- green: brightness value of green. data type: int, range: 0~255
- blue: brightness value of blue. data type: int, range: 0~255
- Return:
- True: The command has been finished.
- False: The command has not been finished.
Example
magicbox.set_led_rgb(port=1, index=1, red=255, green=255, blue=255)Set the RGB of the first light connected to Port 1 of controller as (255, 255, 255).